from loguru import logger

def get_log(sink="py_loguru.log", rotation='10 MB'):
    logger.add(sink=sink, encoding='utf-8',
               rotation=rotation)
    return logger

if __name__ == '__main__':
    log = get_log()
    log.info("hello")